package com.zb.vo;

import com.zb.annotation.NumberPattern;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NonNull;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @Author WEN
 * @Date 2024/3/21 0021
 **/
@Data
@ApiModel("审核取消工单")
public class WorkCheckCancelVo {
    @NotNull(message = "取消工单ID参数不能为空")
    @ApiModelProperty(value = "取消工单ID", required = true)
    private Long id;

    @NotNull(message = "取消工单审核类型不能为空")
    @NumberPattern(regexp = "^(1|2)$", required = true, message = "取消工单审核类型参数不合法")
    @ApiModelProperty(value = "取消工单审核类型：1-审核通过，2-驳回")
    private Integer checkType;

    @Length(max = 200, message = "审核备注长度限制200字符")
    @ApiModelProperty(value = "审核备注")
    private String remark;
}
